import java.util.Scanner;
public class TestJudge{
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        System.out.println("a="+a);
        System.out.println("b="+b);
        if(a%3==0&&a%5==0){
            System.out.println(+a+"可以被3和5整除");
        }else{
            System.out.println(+a+"不能被3和5整除");
        }
        if(b%3==0&&b%5==0){
            System.out.println(+b+"可以被3和5整除");
        }else{
            System.out.println(+b+"不能被3和5整除");
        }
    }

}